<#import "/spring.ftl" as spring />
<#include "../../consts.ftl">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> </title>
<link href="${skin}/css/menu.css" rel="stylesheet" type="text/css">
<link href="${skin}/css/tree.css" rel="stylesheet" type="text/css">
<script src="${ctx}/js/common.js"></script>
<script src="${ctx}/js/tree/xtree.js"></script>
<script src="${ctx}/js/page_init.js"></script>
</head>

<script>
//菜单的类型
var menuType = "person"; //site auth sys

function displayOrHideMenu(objID){
	displayOrHide("menu_" + objID);
	
	var linkTable = document.getElementById("menu_" + objID);
	var obj = document.getElementById("menu_title_" + objID);
	
	if(obj){
		if(linkTable.style.display==""){
			obj.className = "menu-ctrl-bar-exp-button";
		}else{
			obj.className = "menu-ctrl-bar-col-button";
		}
	}
}

//页面初始化
function pageInit(){

}

//加载菜单
function loadMenu(loadMenuType){
	if(document.getElementById(loadMenuType + "MenuIFrame")){	//如果之前已经加载了菜单
		//如果已经加载过了，则再切换要显示哪一组菜单
		var menuif = document.getElementById(loadMenuType + "MenuIFrame");
		if(menuif.loadMenu){ menuif.loadMenu(loadMenuType); }
	}else{	//如果是第一次加载
		document.getElementById(loadMenuType + "MenuSpan").innerHTML = "<iframe id="+loadMenuType+"MenuIFrame name="+loadMenuType+"MenuIFrame src='' frameborder=0 scrolling=no vspace=0 width=100% height=100% hspace=0></iframe>";
	}
	//更改当前的菜单面板
	menuChange(loadMenuType);
//	}
} 

//更改当前的菜单面板
function menuChange(currMenu){
	document.getElementById("siteMenuSpan").style.display = "none";
	document.getElementById("docMenuSpan").style.display = "none";
	document.getElementById("statMenuSpan").style.display = "none";
	document.getElementById("interMenuSpan").style.display = "none";
	document.getElementById("personMenuSpan").style.display = "none";
	document.getElementById("sysMenuSpan").style.display = "none";
	document.getElementById("authMenuSpan").style.display = "none";
	document.getElementById(currMenu + "MenuSpan").style.display = "";
	try{
		eval(currMenu + "MenuIFrame.changeLocation()");
	}catch(e){  }
}

</script>


<body onLoad="pageInit();loadMenu(menuType)"> 
<span id="siteMenuSpan"></span>
<span id="docMenuSpan"></span>
<span id="statMenuSpan"></span>
<span id="interMenuSpan"></span>
<span id="personMenuSpan"></span>
<span id="sysMenuSpan"></span>
<span id="authMenuSpan"></span> 
</body>
</html>